package com.suixinsanren.design.singleton.demo.demo01;

public class LazyStyleSingle {

    private static volatile LazyStyleSingle singleInstance;

    private LazyStyleSingle() {
    }

    public static LazyStyleSingle getInstance() {
        if (singleInstance != null) {
            return singleInstance;
        } else {
            synchronized (LazyStyleSingle.class) {
                if (singleInstance == null) {
                    singleInstance = new LazyStyleSingle();
                }
                return singleInstance;
            }
        }

    }


}
